{% extends "base.html" %}

{% block title %}{{sysname}} (notes){% endblock %}
{% block heading %}Notes - {{sysname}}{% endblock %}

{% block leftmenu %}
	<a href='/scanning'>Map</a><br/>
	<a href='/viewsystem2?name={{sysname}}'>View system</a> 
{% endblock %}

{% block content %}
		<form action='/sysnotes' method='post'>
		<input type='hidden' name='sysname' value='{{sysname}}' />

		<table>
			<tr class="standard">
				<td>System:</td>
				<td>{{sysname}}</td>
			</tr>
			<tr class="standard">
				<td>Nickname:</td>
				<td>
					<input type="text" name="nickname" value="{{notes.nickname}}" />
				</td>
			</tr>
			<tr class="standard">
				<td>Prime?:</td>
				<td>
					<input type='checkbox' name='prime' value='prime'
					{% if notes.is_prime %}
						checked
					{% endif %}
					/>	
				</td>
			</tr>
			<tr class="standard">
				<td valign="top">Notes:-</td>
				<td>
					<div id="notes">
						<textarea rows="12" cols="50" name="notes">{{notes.notes}}</textarea>
					</div>
				</td>
			</tr>
			<tr class="standard">
				<td>&nbsp;</td>
				<td><input type="Submit" value="Update"/></td>
			</tr>
		</table>

		</form>

{% endblock %}
